package com.jackchan.homework.sysw.entity;

import com.jackchan.homework.common.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by ch-hui on 15/12/20.
 * 原料表
 */
@Entity
@Table(name = "t_material")
public class Material extends IdEntity {

    // 饲料名称
    private String name;

    // 最近采购价格
    private Float lastEnterPrice;

    // 市场单价
    private Float currentMarketPrice;

    // 饲料描述
    private String feedDesc;

    // 中国饲料编号
    private String cfn;

    //原料类型：0-配方试算,1-正式原料
    private Integer opType;

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "last_enter_price")
    public Float getLastEnterPrice() {
        return lastEnterPrice;
    }

    public void setLastEnterPrice(Float lastEnterPrice) {
        this.lastEnterPrice = lastEnterPrice;
    }

    @Column(name = "current_market_price")
    public Float getCurrentMarketPrice() {
        return currentMarketPrice;
    }

    public void setCurrentMarketPrice(Float currentMarketPrice) {
        this.currentMarketPrice = currentMarketPrice;
    }


    @Column(name = "feed_desc")
    public String getFeedDesc() {
        return feedDesc;
    }

    public void setFeedDesc(String feedDesc) {
        this.feedDesc = feedDesc;
    }

    @Column(name = "cfn")
    public String getCfn() {
        return cfn;
    }

    public void setCfn(String cfn) {
        this.cfn = cfn;
    }

    @Column(name = "optype")
    public Integer getOpType() {
        return opType;
    }

    public void setOpType(Integer opType) {
        this.opType = opType;
    }
}
